import {
    ArticleList,
    Edite,
    Dashboard,
    NotFount,
    Setting,
    Login
} from '../views'

 const mainRoutes = [{
    pathname: '/login',
    component: Login
},{
    pathname: '/404',
    component: NotFount
}]


const adminRoutes= [{
        pathname: '/admin/Dashboard',
        component: Dashboard,
        title:'仪表盘',
        icon:'dashboard',
        isNav: true
    },
    {
        pathname: '/admin/article',
        component: ArticleList,
        title:'文章管理',
        icon:'unordered-list',
        isNav: true,
        exact: true
    }
    ,{
        pathname: '/admin/setting',
        component: Setting,
        title:'设置',
        icon:'setting',
        isNav: true
    },
    {
        pathname: '/admin/article/Edite/:id',
        component: Edite
    },{
        pathname: '/404',
        component: NotFount
    }]
    export {mainRoutes,adminRoutes}